package org.opens.sql.constant;

/**
 * 功能描述
 *
 * @author by zhangyuming
 * @date 2023/3/6
 */
public enum TombstoneColumnType {

    STRING("STRING", "字符串类型"),
    INTEGER("INTEGER", "数值类型"),
    CHAR("CHAR", "字符类型");

    private String value;

    private String desc;

    TombstoneColumnType(String typeName, String desc) {
        this.value = typeName;
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public static TombstoneColumnType getInstance(String value) {
        for (TombstoneColumnType item : TombstoneColumnType.values()) {
            if (item.getValue().equals(value)) {
                return item;
            }
        }
        return null;
    }

}
